package cn.zymall.scheduled.mapper;

import cn.zymall.common.model.SysTask;
import cn.zymall.common.model.TaskAdminView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author xuxianda
 * @Description: 商品任务持久层
 * @date 2020/8/19 16:14
 * @Copyright
 * @return
 **/
@Mapper
public interface TaskMapper extends BaseMapper<SysTask> {
    /**
     * 查询单条待处理任务记录，条件{任务类型=单次，任务状态=未执行，查询最离系统时间最近的一条记录}
     *
     * @return
     */

    public SysTask selectWaitTask();

    public List select(TaskAdminView taskAdminView);
}
